INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})

SET(LIB_NAME OCServerApp)

SET(TARGET_H
	MyWorkQueue.h
)

IF(WIN32)
	SET(TARGET_SRC
		Resource.rc
		main.cpp
		MyWorkQueue.cpp
	)
ELSE(WIN32)
	SET(TARGET_SRC
		main.cpp
		MyWorkQueue.cpp
	)
ENDIF(WIN32)

SETUP_GROUP()

SET(TARGET_COMMON_LIBRARIES 
    OCMain
    OCServer
	drogon
	trantor
)

SETUP_APPLICATION(${LIB_NAME})
ADD_DEPENDENCIES(${LIB_NAME} OCMain)
ADD_DEPENDENCIES(${LIB_NAME} OCServer)

IF(WIN32)
	#SETUP_DEP_PLUGIN(ControllerLogin)
	SETUP_DEP_PLUGIN(ControllerWeatherService)
	SETUP_DEP_PLUGIN(ControllerMapServer)
	SETUP_DEP_PLUGIN(ControllerAlias)
	SETUP_DEP_PLUGIN(ControllerCAPService)
	SETUP_DEP_PLUGIN(ControllerMicroWin3dService)
	#SETUP_DEP_PLUGIN(Project_IceCoverPre)
	#SETUP_DEP_PLUGIN(Project_MountainTorrents)
	SETUP_DEP_PLUGIN(Project_WeathertoyApp)
	set_property(TARGET ${LIB_NAME} PROPERTY VS_DEBUGGER_WORKING_DIRECTORY ${OUTPUT_BINDIR})
	set_property(TARGET ${LIB_NAME} PROPERTY VS_DEBUGGER_COMMAND_ARGUMENTS "--port 9023")
ELSE(WIN32)

ENDIF(WIN32)

